<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U('')}">
       <div class="tab-content">
           <input type="hidden"  name="room_id" value="{:I('get.room_id')}"   />



           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>人员 </label>
               <div class="col-sm-10">
                   <input type="text"  name="name"  class=" input-sm"  placeholder="姓名"/>


                   <select name="sex" id="">
                       <option value="男">男</option>
                       <option value="女">女</option>
                   </select>



               </div>
           </div>

           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>手机号 </label>
               <div class="col-sm-10">
                   <input type="text"  name="tel"  class=" input-medium" maxlength="11" />

               </div>
           </div>

           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> 身份证号 </label>
               <div class="col-sm-10">
                   <input type="text"  name="sfz"  class=" input-large" maxlength="11" />

               </div>
           </div>

           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>单位 </label>
               <div class="col-sm-10">
                   <select class="input-large   selectpicker"  name="danwei" title="请选择">




                   <volist name=":F('Var_danwei_tree')" id="vo"  >
                       <optgroup label="{$vo.name}">

                           <volist name="vo[child]" id="v"  >

                               <option value="{$v.id}">{$v.name}</option>


                               </volist>
                       </optgroup>




                   </volist>
                       <option value="外部单位">外部单位</option>
                   </select>

               </div>
           </div>

           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> 接待单位 </label>
               <div class="col-sm-10">
                   <select class="input-large  selectpicker"  name="jiedaidanwe" title="请选择">




                       <volist name=":F('Var_danwei_tree')" id="vo"  >
                           <optgroup label="{$vo.name}">

                               <volist name="vo[child]" id="v"  >

                                   <option value="{$v.id}">{$v.name}</option>


                               </volist>
                           </optgroup>




                       </volist>
                   </select>

               </div>
           </div>


           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> 备注 </label>
               <div class="col-sm-10">
                   <textarea name="desc" rows="5" cols="57">{$data.remark}</textarea>
               </div>
           </div>


           <!--<div class="form-group">-->
               <!--<label class="col-sm-2 control-label "> <span class="red">*</span>楼号 </label>-->
               <!--<div class="col-sm-10">-->
                   <!--<select class="input-large  selectpicker"  name="building" title="请选择">-->


                       <!--<volist name=":F('Var_building')" id="vo"  >-->

                           <!--<php>$clecked=($vo[id]==$data['building'])?'selected':'';</php>-->


                           <!--<option value="{$vo.id}" {$clecked}>{$vo.name}-->

                           <!--</option>>-->

                       <!--</volist>-->
                   <!--</select>-->

                   <!--<select class="input-large  selectpicker" id="room_id" name="room_id" title="请选择">-->


                   <!--</select>-->

               <!--</div>-->
           <!--</div>-->

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>入住时间 </label>
               <div class="col-sm-10">
                   <input type="text"  name="checkin" value="{:date('Y-m-d',time())}"  class=" J_date "/>
               </div>
           </div>

         
         
      </div>
      <div class="form-actions">
          <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit"> 提交</button>

      	 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
      
      </div>
    </form>
</block>
<block name="plugin-script">
    <script src="__JS__/content.js"></script>
    <script src="__JS__/ueditor/ueditor.config.js"></script>
    <script src="__JS__/ueditor/ueditor.all.min.js"></script>
</block>